package org.hdax.dm.client;

import org.hdax.dm.entity.scheduler_seat_price.DmSchedulerSeatPrice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dm-scheduler-provider")
public interface DmSchedulerSeatPriceClient {

    @PostMapping(path = "/findByDmSchedulerSeatPrice")
    List<DmSchedulerSeatPrice> findByDmSchedulerSeatPrice(@RequestBody DmSchedulerSeatPrice dmSchedulerSeatPrice);

    @PostMapping(path = "/getSchedulerSeatPriceBySchedulerIdAndArea")
    DmSchedulerSeatPrice getSchedulerSeatPriceBySchedulerIdAndArea(@RequestParam("schedulerId") Integer schedulerId,
                                                                   @RequestParam("areaLevel") Integer areaLevel);
}
